<?php
namespace app\index\model;
use think\Model;

class Category extends Model 
{
    /**
     * 查询多条数据,根据条件$where (数组)
     * @param string $field
     * @param string $where
     * @return mixed
     */
	public function queryAllCate ($field="",$where="")
	{
		$info = $this->field($field)->where($where)->select();
		foreach($info as $key => $val){
			$data[$key] = $val->data;
		}
		return $data;
	}

	
}

?>